import QtQuick 2.0
import "../Common/Compoments"

Rectangle {
    id: container

    property string text: "Button"

    signal signalClicked()

    width: buttonLabel.width + 20; height: buttonLabel.height + 5
    antialiasing: true
    radius: 6
    color: setting.g_Colors.m_cLoginPanelLoginButtonBackground


    MouseArea {
        id: mouseArea
        anchors.fill: parent
        onClicked: container.signalClicked()
    }

    LQBaseText {
        id: buttonLabel
        anchors.centerIn: container
        color: mouseArea.pressed ? g_Colors.m_cLoginPanelLoginButtonTextPressed:g_Colors.m_cLoginPanelLoginButtonTextNormal
        text: container.text
        font.pixelSize:  parent.height * 0.5
    }
}

